var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }
    if (qm.isQuestFinished(33182)) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.curNodeEventEnd(true);
            qm.setInGameDirectionMode(true, false, true);
            qm.npc_ChangeController(1540544, "oid=22406534", 467, 60, 5, 417, 517, 1, false, 0, false);
            qm.npc_SetSpecialAction("oid=22406534", "summon", 0, 0);
            qm.inGameDirectionEvent_AskAnswerTime(2000)
        } else {
            if (status === a++) {
                qm.inGameDirectionEvent_PushMoveInfo(0, 1500, 467, -75)
            } else {
                if (status === a++) {
                    qm.inGameDirectionEvent_AskAnswerTime(2025)
                } else {
                    if (status === a++) {
                        qm.inGameDirectionEvent_AskAnswerTime(1800);
                        qm.effect_NormalSpeechBalloon("呃呃……呃…….", 1, 0, 0, 1500, 1, 0, 0, 0, 4, 1540544, qm.getPlayer().getId())
                    } else {
                        if (status === a++) {
                            qm.sendNormalTalk_Bottom("！！你听到刚刚的呻吟了吗？\r\n既然已经消灭了怪物，那我们赶紧去2号宿舍看看吧！！", 37, 1540624, false, true)
                        } else {
                            if (status === a++) {
                                qm.inGameDirectionEvent_PushMoveInfo(1, 2100, 0, 0)
                            } else {
                                if (status === a++) {
                                    qm.inGameDirectionEvent_AskAnswerTime(1018)
                                } else {
                                    if (status === a++) {
                                        qm.setInGameDirectionMode(false, true, false);
                                        qm.forceCompleteQuest(33182);
                                        qm.dispose()
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/33182.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceStartQuest();
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的结束脚本还没有修复哦。它的脚本位于： #b /脚本/任务/#e" + e + "#n.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻完成这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceCompleteQuest();
                qm.dispose()
            }
        }
    }
};